<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:data="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <!--<meta content="text/html;charset=UTF-8"/>-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>Title</title>
</head>
<head th:include="include/include" ></head>
<script>
    //禁止滚动条
    $(document.body).css({
        "overflow-x":"hidden",
        "overflow-y":"auto"
    });
    $(function(){
        //配件小计
        $("#calculateSumPart1").blur(function(){
            var sum=eachTable("#partInfoTable",7);
            $(this).val(sum);
        });
        $("#calculateSumPart2").blur(function(){
            var sum=eachTable("#partInfoTable",12);
            $(this).val(sum);
        });
        //工时小计
        $("#calculateSumManHour1").blur(function(){
            var sum=eachTable("#manHourTable",2);
            $(this).val(sum);
        });
        $("#calculateSumManHour2").blur(function(){
            var sum=eachTable("#manHourTable",3);
            $(this).val(sum);
        });
        //费用小计
        $("#calculateSumFee1").blur(function(){
            var sum=eachTable("#feeTable",2);
            $(this).val(sum);
        });
        $("#calculateSumFee2").blur(function(){
            var sum=eachTable("#feeTable",3);
            $(this).val(sum);
        });

    });
    //供父页面调用
    //taskNo  ,任务号
    //taskId ,任务id
    var renwuno;

    function  getParentData2(taskNo,taskId){
        if(taskNo!=''){
            renwuno=taskNo;
            $("#taskNo").val(taskNo);
            findPartInfoListByTaskNo(taskNo);
            manHourInfo(taskNo);//工时费信息
            costInfo(taskNo);//费用信息
        }else{
            console.log("任务号获取失败");
        }
    }
    /**
     * 查询工时信息
     * @constructor
     */
    function manHourInfo(taskNo){
        if(taskNo!=''&&typeof taskNo!="undefined"){
            $.ajax({
                url:'assessmentLossCheckPriceDetail/list',
                data:{limit: 50, // 每页要显示的数据条数
                    offset: 0, // 每页显示数据的开始行号
                    page: 1,
                    renwuhao:taskNo,
                },
                dataType:"JSON",
                type:"POST",
                success:function (data) {
                    if(data!=null){
                        $.each(data.rows,function(index,item){
                            addmanHourItems(item.xzmc,item.xlxm,item.gsbj,item.gsfhs,item.zhuangtai,item.ids)

                        })
                    }else{
                        alert("查询异常");

                    }


                },
                error:function () {
                }
            });

        }

    }
    //查询费用信息
    function costInfo(taskNo){
        if(taskNo!=''){
            $.post("manHour/list",{limit: 50, // 每页要显示的数据条数
                offset: 0, // 每页显示数据的开始行号
                page: 1,
                renwuno:taskNo,},function(data){
                if(data!=null){
                    $.each(data.rows,function(index,item){
                        addCostTrInfo(item.dsxz,item.fylx,item.fyje,item.hsje,item.sm,item.ids);
                    })

                }


            })
        }
    }
    //添加工时行信息
    function addmanHourItems(xzmc,xlxm,gsbj,gsfhs,zhuangtai,ids){
        if(xzmc==""){
            xzmc="第三方责任险";
        }
        if(xlxm==null){
            xlxm="";
        }
        if(zhuangtai=="0"){
            zhuangtai="未完成";
        }else if(zhuangtai=="1"){
            zhuangtai="已完成";
        }
        var str="<tr class='text-center'>" +
            "       <td>" +
            "           <label>" +
            "               <select>" +
            "                   <option value='"+xzmc+"'>"+xzmc+"</option>" +
            "               </select>" +
            "           </label>" +
            "       </td>" +
            "       <td>" +
            "           <label>" +
            "               <input value='"+xlxm+"' name='' class='width80' onblur=\"updateManHour(this,"+ids+",'xlxm');\"/>" +
            "           </label>" +
            "       </td>" +
            "       <td>" +
            "           <label>" +
            "               <input value='"+gsbj+"' name='' class='width80' onblur=\"updateManHour(this,"+ids+",'gsbj');\" onkeyup= \"if(! /^[0-9]{1,}(?:.[0-9]{0,2})?$/.test(this.value)){alert('只能输入数字,小数点后只能保留两位');this.value=this.defaultValue;}\"/>" +
            "           </label>" +
            "       </td>" +
            "       <td>" +
            "           <label><input value='"+gsfhs+"' name='' class='width80' onblur=\"updateManHour(this,"+ids+",'gsfhs');\" onkeyup= \"if(! /^[0-9]{1,}(?:.[0-9]{0,2})?$/.test(this.value)){alert('只能输入数字,小数点后只能保留两位');this.value=this.defaultValue;}\"/></label>" +
            "       </td>" +
            "       <td><label>"+zhuangtai+"</label>" +
            "       </td>" +
            "       <td style='text-align: center'>" +
            "           <span class='glyphicon glyphicon-remove-sign ' onclick=\"deletetr(this,"+ids+",'assessmentLossCheckPriceDetail/delById','GET');\"></span>" +
            // "           <span class='glyphicon glyphicon-pencil margin5Left' ></span>" +
            "       </td>" +
            "   </tr>";
        $("#tr_addRepairItems").before(str);

    }
    //添加费用信息行
    function addCostTrInfo(dsxz,fylx,fyje,hsje,sm,ids){
        if(fylx==null){
            fylx="-请选择-";
        }
        var str="<tr class='text-center'>  " +
            "                                        <td>  " +
            "                                            <label>  " +
            "                                                <select>  " +
            "                                                    <option value='"+dsxz+"'>"+dsxz+"</option>  " +
            "                                                </select>  " +
            "                                            </label>  " +
            "                                        </td>  " +
            "                                        <td>  " +
            "                                            <label>  " +
            "                                                <select>  " +
            "                                                    <option value='"+fylx+"'>"+fylx+"</option>  " +
            "                                                </select>  " +
            "                                            </label>  " +
            "                                        </td>  " +
            "                                        <td>  " +
            "                                            <label><input value='"+fyje+"' onblur=\"update(this,"+ids+",'fyje','manHour/update');\" onkeyup= \"if(! /^[0-9]{1,}(?:.[0-9]{0,2})?$/.test(this.value)){alert('只能输入数字,小数点后只能保留两位');this.value=this.defaultValue;}\"/></label>" +
            "                                        </td>  " +
            "                                        <td>  " +
            "                                            <label><input value='"+hsje+"' onblur=\"update(this,"+ids+",'hsje','manHour/update');\" onkeyup= \"if(! /^[0-9]{1,}(?:.[0-9]{0,2})?$/.test(this.value)){alert('只能输入数字,小数点后只能保留两位');this.value=this.defaultValue;}\"/></label>  " +
            "                                        </td>  " +
            "                                        <td> " +
            "                                            <label><input value='"+sm+"' onblur=\"update(this,"+ids+",'sm','manHour/update');\"/></label>" +
            "                                       </td> " +
            "                                       <td> " +
            "                                           <span class='glyphicon glyphicon-remove-sign ' onclick=\"deletetr(this,"+ids+",'manHour/delById','GET');\"></span>" +
            "                                       </td>" +
            "   </tr>";
        $("#tr_addCost").before(str);

    }

    function findPartInfoListByTaskNo(taskNo){
        if(taskNo!=''){
            $.post("materialDamageInfo/list",{page:1,limit:50,offset:0,renwuno:taskNo},function(data){
                if(data!=null){
                    var datas=data.rows;
                    $.each(datas,function(index ,item){
                        addPartInfo( item.xzmc,item.cwmc,item.ggxh,item.sl,item.dj,item.sscd,item.cz,item.sshj,item.hjsl,item.hjjg,item.hjsscd,item.hjcz,item.hjsshj,item.ids);
                    });
                }else{
                    // alert("未查询到信息");
                }


            })

        }else{
            console.log("任务号为空");
        }

    }

    //添加配件行信息
    function  addPartInfo( xzmc,cwmc,ggxh,sl,dj,sscd,cz,sshj,hjsl,hjjg,hjsscd,hjcz,hjsshj,ids){
       if(xzmc==null){
           xzmc="";
       }
       if(cwmc==null){
           cwmc="";
       }

        if(ggxh==null){
            ggxh="";
        }
        if(dj==null){
            dj="0.00";
        }
        if(sscd==null){
            sscd="0";
        }
        if(cz==null){
            cz="0";
        }
        if(sshj==null){
            sshj="0.00";
        }
        if(hjjg==null){
            hjjg="0.00";
        }
        if(hjsscd==null){
            hjsscd="0";
        }
        if(hjcz==null){
            hjcz="0";
        }
        if(hjsshj==null){
            hjsshj="0.00";
        }
        var str=" <tr class='text-center'>" +
            "                                    <td><label><select name=''><option value='"+xzmc+"'>"+xzmc+"</option></select></label></td>" +
            "                                    <td>" +
            "                                        <label><input  value='"+cwmc+"' name='cwmc' class='width60' onblur=\"update(this,'"+ids+"','cwmc','materialDamageInfo/update')\"/></label>" +
            "                                    </td>" +
            "                                    <td>" +
            "                                        <label><input  value='"+ggxh+"' name='' class='width60' onblur=\"update(this,'"+ids+"','ggxh','materialDamageInfo/update')\"/></label>" +
            "                                    </td>" +
            "                                    <td>" +
            "                                        <label><input  value='"+sl+"' name='' class='width60' onblur=\"update(this,'"+ids+"','sl','materialDamageInfo/update')\" onkeyup=\"value=value.replace(/^(0+)|[^\\d]+/g,'1')\" type='number' min='1'/></label>" +
            "                                    </td>" +
            "                                    <td>" +
            "                                        <label><input  value='"+dj+"' name='' class='width60' onblur=\"update(this,'"+ids+"','dj','materialDamageInfo/update')\"  onkeyup= \"if(! /^[0-9]{1,}(?:.[0-9]{0,2})?$/.test(this.value)){alert('只能输入数字,小数点后只能保留两位');this.value=this.defaultValue;}\"/></label>" +
            "                                    </td>" +
            "                                    <td>" +
            "                                        <label><input  value='"+sscd+"' name='' class='width60' onblur=\"update(this,'"+ids+"','sscd','materialDamageInfo/update')\" onkeyup=\"value=value.replace(/[^\\d]+/g,'')\" type='number' min='0'/>%</label>" +
            "                                    </td>" +
            "                                    <td>" +
            "                                        <label><input  value='"+cz+"' name='' class='width60' onblur=\"update(this,'"+ids+"','cz','materialDamageInfo/update')\" onkeyup=\"value=value.replace(/[^\\d]+/g,'')\" type='number' min='0'/></label>" +
            "                                    </td>" +
            "                                    <td>\n" +
            "                                        <label><input  value='"+sshj+"' name='' class='width60' onblur=\"update(this,'"+ids+"','sshj','materialDamageInfo/update')\"  onkeyup= \"if(! /^[0-9]{1,}(?:.[0-9]{0,2})?$/.test(this.value)){alert('只能输入数字,小数点后只能保留两位');this.value=this.defaultValue;}\"/></label>" +
            "                                    </td>" +
            "                                    <td>" +
            "                                        <label><input  value='"+hjsl+"' name='' class='width60' onblur=\"update(this,'"+ids+"','hjsl','materialDamageInfo/update')\" onkeyup=\"value=value.replace(/^(0+)|[^\\d]+/g,'')\" type='number' min='1'/></label>" +
            "                                    </td>" +
            "                                    <td>" +
            "                                        <label><input  value='"+hjjg+"' name='' class='width60' onblur=\"update(this,'"+ids+"','hjjg','materialDamageInfo/update')\" onkeyup= \"if(! /^[0-9]{1,}(?:.[0-9]{0,2})?$/.test(this.value)){alert('只能输入数字,小数点后只能保留两位');this.value=this.defaultValue;}\"/></label>" +
            "                                    </td>" +
            "                                    <td>" +
            "                                        <label><input  value='"+hjsscd+"' name='' class='width60' onblur=\"update(this,'"+ids+"','hjsscd','materialDamageInfo/update')\" onkeyup=\"value=value.replace(/[^\\d]+/g,'')\" type='number' min='0'/>%</label>" +
            "                                    </td>" +
            "                                    <td>" +
            "                                        <label><input  value='"+hjcz+"' name='' class='width60' onblur=\"update(this,'"+ids+"','hjcz','materialDamageInfo/update')\" onkeyup=\"value=value.replace(/[^\\d]+/g,'')\" type='number' min='0'/></label>" +
            "                                    </td>" +
            "                                    <td>" +
            "                                        <label><input  value= '"+hjsshj+"' name='' class='width60' onblur=\"update(this,'"+ids+"','hjsshj','materialDamageInfo/update')\" onkeyup= \"if(! /^[0-9]{1,}(?:.[0-9]{0,2})?$/.test(this.value)){alert('只能输入数字,小数点后只能保留两位');this.value=this.defaultValue;}\"/></label>" +
            "                                    </td>" +
            "                                    <td>" +
            "                                        <span class='glyphicon glyphicon-remove-sign' onclick=\"deletetr(this,"+ids+",'materialDamageInfo/delById','GET');\"></span>" +
            "                                    </td>" +
            "                                </tr>";
        $("#addPartInfo_tr").before(str);

    }

    //删除当前行
    function deletetr(tr,ids,url,type){
        if(ids!=''&&ids!=null&& typeof ids!="undefined"){
            BootstrapDialog.show({
                title: '确认删除',
                message: '是否删除？',
                type:BootstrapDialog.TYPE_WARNING,
                size:BootstrapDialog.SIZE_SMALL,
                buttons: [{
                    label: '确认',
                    action: function(dialog) {
                        $.ajax({
                            url:url,
                            data:{id:ids},
                            dataType:"JSON",
                            type:type,
                            async:false,
                            success:function(data){
                                if(data!=null){
                                    if(data.status==1){
                                        dialog.close();
                                        $(tr).parent().parent().remove();
                                    }
                                }
                            },
                            error:function(){

                            }
                        })


                    }
                }, {
                    label: '取消',
                    action: function(dialog) {
                        dialog.close();
                    }
                }]
            });

        }

    }
    //更新信息
    function  update(val,ids,name,url){
        if(ids!=''&&name!=''&&url!=''){
            var tdValue=$(val).val();
            console.log("旧值:"+val.defaultValue+"新值："+tdValue);
            if(tdValue==''||val.defaultValue==tdValue){//为空或者未改变值
                return;
            }
            var map=new Map();
            map[name]=tdValue;
            map['ids']=ids;
            $.ajax({
                url:url,
                data:map,
                dataType:"JOSN",
                type:"POST",
                success:function(data){
                    if(data!=null){
                        if(data.status==1){
                            val.defaultValue=map[name];
                        }else{
                            BootstrapDialog.show({
                                title: '提示信息',
                                message: data.msg,
                                type: BootstrapDialog.TYPE_WARNING,
                                size: BootstrapDialog.SIZE_SMALL,
                                buttons: [{
                                    label: '确认',
                                    action: function (dialog) {
                                        dialog.close();
                                    }
                                }]
                            });
                        }
                    }



                },
                error:function () {
                    
                }

            })

        }

    }
    /**
     * 更新工时信息
     * @param val 更新项
     * @param ids 更新项的id
     * @param name 更新项的名称
     */
    function updateManHour(val,ids,name){
        if(ids!=''&&ids!=null&&typeof  ids !="undefined"&&name!=''){
            var map=new Map();
            if (typeof val=="boolean" ) {
                if(val){
                    map[name]=1;
                }else{
                    map[name]=0;
                }
            }else if(typeof val=="object"){
                var tdValue=$(val).val();
                console.log("旧值:"+val.defaultValue+"新值："+tdValue);
                if(tdValue==''||val.defaultValue==tdValue){//为空或者未改变值
                    return;
                }
                if(name=='gsfhs'){//修改状态值
                    var gsbj=$(val).parent().parent().prev().children().children(":input").val();//工时报价
                    var statusObj=  $(val).parent().parent().parent().children().eq(4).children();//获取状态栏信息
                    if(gsbj==tdValue&&tdValue!="0.00"&&tdValue!="0"){
                        var statusVal= statusObj.text();//状态值
                        //console.log("状态："+statusVal);
                        if(statusVal!="已完成"&&statusVal!="完成"){
                            map['zhuangtai']=1;
                            statusObj.text("已完成");
                        }
                    }else{
                        if(statusVal!="未完成"){
                            map['zhuangtai']=0;
                            statusObj.text("未完成");
                        }

                    }
                }
                map[name]=tdValue;
            }
            map['ids']=ids;
            $.ajax({
                url: 'assessmentLossCheckPriceDetail/update',
                data: map,
                dataType: 'JSON',
                type: 'POST',
                async: false,
                success: function (data) {
                    console.log(data.status);
                    if (data.status == 1) {

                    } else {
                        BootstrapDialog.show({
                            title: '提示信息',
                            message: data.msg,
                            type: BootstrapDialog.TYPE_WARNING,
                            size: BootstrapDialog.SIZE_SMALL,
                            buttons: [{
                                label: '确认',
                                action: function (dialog) {
                                    dialog.close();
                                }
                            }]
                        });

                    }

                },
                error: function () {

                }


            })

        }

    }



//    添加修理项目项
    function addRepairItems(){
        var taskNo= $("#taskNo").val();
        var map={xzmc:'第三方责任险',renwuhao:taskNo};
        if(taskNo!=''){
            $.ajax({
                url: "assessmentLossCheckPriceDetail/add",
                data: map,
                dataType: "JSON",
                type: "POST",
                async: false,
                success: function (data) {
                    if (data.status==1) {
                        var datas=data.data;
                        addmanHourItems(datas.xzmc,datas.xlxm,datas.gsbj,datas.gsfhs,datas.zhuangtai,datas.ids);
                        //$(val).parent().parent().before(str);
                    } else {
                        alert(data.msg);
                    }

                }
            })




        }else{
            alert("未获取任务号");
        }


    }
//    添加项目
    function addItems(val){
        $.ajax({
            url:"materialDamageInfo/add",
            data:{renwuno:renwuno,xzmc:'交强险'},
            dataType:'JSON',
            type:"POST",
            success:function(data){
                if(data!=null){
                    if(data.status==1){
                        var datas=data.data;
                        addPartInfo( datas.xzmc,datas.cwmc,datas.ggxh,datas.sl,datas.dj,datas.sscd,
                            datas.cz,datas.sshj,datas.hjsl,datas.hjjg,datas.hjsscd,datas.hjcz,datas.hjsshj,datas.ids)
                    }else{
                        BootstrapDialog.show({
                            title: '提示信息',
                            message: data.msg,
                            type: BootstrapDialog.TYPE_WARNING,
                            size: BootstrapDialog.SIZE_SMALL,
                            buttons: [{
                                label: '确认',
                                action: function (dialog) {
                                    dialog.close();
                                }
                            }]
                        });
                    }
                }
            }
        });
    }

    //计算合计值
    //id dom对象的 id
    // index 指定列
    function eachTable(id,indexs){
        var sum=0;
        $(id+" tbody tr").each(function(index){
            var obj=$(this).children().eq(0).children();
            var objName=obj.get(0).tagName.toLowerCase();
            if(objName!='button'){
                var objValue=$(this).children().eq(indexs).children().children().val();
                if(!isNaN(objValue)){
                    sum+=parseFloat(objValue)
                }
            }else if(objName=='button'){
                //$(".calculateSum").val(sum.toFixed(2));
                return false;
            }
        });

        return sum.toFixed(2);

    }

    function addCost() {
        var taskNo=$("#taskNo").val();
        var map={'dsxz':'第三方责任险',renwuno:taskNo};
        $.ajax({
            url: "manHour/add",
            data: map,
            dataType: "JSON",
            type: "POST",
            async: false,
            success: function (data) {
                if (data.status==1) {
                    var datas=data.data;
                    addCostTrInfo(datas.dsxz,datas.fylx,datas.fyje,datas.hsje,datas.sm,datas.ids);
                } else {
                    alert("添加失败");
                }

            }
        })
        
    }
    //提交信息
    function submitInfo(){
       var fixedLossIntruction=$("#fixedLossIntruction").val();
       var taskNo=$("#taskNo").val();
       //alert("任务号=="+taskNo+",说明="+fixedLossIntruction);

       $.post("fixedLossHistoryInfo/add",{taskNo:taskNo,fixedLossIntruction:fixedLossIntruction},function(data){
           if(data!=null){
               BootstrapDialog.show({
                   title: '提示信息',
                   message: data.msg,
                   type: BootstrapDialog.TYPE_WARNING,
                   size: BootstrapDialog.SIZE_SMALL,
                   buttons: [{
                       label: '确认',
                       action: function (dialog) {
                           dialog.close();
                       }
                   }]
               });
           }

       })

    }


</script>
<body>
    <div class="container-fluid">
        <div id="form">
            <form class="form-inline" role="form">
                <div >
                    <div class="row">
                        <div class="col-md-12">
                            <div class="modelTitle text-center">
                                <label>配件信息</label>
                            </div>
                            <table class="table table-bordered table-condensed" id="partInfoTable">
                                <thead >
                                <tr style="display: none;">
                                    <td > <input value="" id="taskNo" name="renwuno"/></td>
                                </tr>
                                    <tr class="tableTheadcolor">
                                        <th colspan="8" > <label>定损</label> </th>
                                        <th colspan="7"> <label>核价</label> </th>
                                    </tr>
                                    <tr class="tableTrcolor">
                                        <th><label>险种名称</label></th>
                                        <th><label>财物名称</label></th>
                                        <th><label>规格型号</label></th>
                                        <th><label>数量</label></th>
                                        <th><label>单价</label></th>
                                        <th><label>损失程度</label></th>
                                        <th><label>残值</label></th>
                                        <th><label>损失合计</label></th>
                                        <th><label>数量</label></th>
                                        <th><label>核价价格</label></th>
                                        <th><label>损失程度</label></th>
                                        <th><label>残值</label></th>
                                        <th><label>损失合计</label></th>
                                        <th><label>操作</label></th>
                                    </tr>
                                </thead>
                                <tbody>
                                <tr id="addPartInfo_tr">
                                    <td colspan="6">
                                        <button type="button" class="btn-mini btn-info" onclick="addItems(this);">添加配件</button>
                                    </td>
                                    <td colspan="2" class="text-right">
                                        <label>合计:</label> <label><input value=" " name="" class="width80" id="calculateSumPart1"/></label>
                                    </td>
                                    <td colspan="3">

                                    </td>
                                    <td colspan="3">
                                        <label>合计:</label><label> <input value=" " name="" class="width80" id="calculateSumPart2"/></label>
                                    </td>
                                </tr>
                                </tbody>

                            </table>
                        </div>

                    </div>
                    <!--第一项结束-->
                    <!--第二项开始-->
                    <div class="row">
                        <div class="col-md-12">
                            <table class="table table-condensed table-bordered" id="manHourTable">
                                <thead>
                                <tr class="tableTheadcolor">
                                    <th><label>险种名称</label></th>
                                    <th><label>修理项目</label></th>
                                    <th><label>工时费报价</label></th>
                                    <th><label>工时费核损</label></th>
                                    <th><label>状态</label></th>
                                    <th><label>操作</label></th>
                                </tr>
                                </thead>
                                <tbody>

                                <tr id="tr_addRepairItems">
                                    <td colspan="2"><button type="button" class="btn-mini btn-info" onclick="addRepairItems();">添加工时</button></td>
                                    <td class="text-right"><label>小计:</label><label> <input value=" " name="" id="calculateSumManHour1"/></label></td>
                                    <td colspan="3"><label>小计:</label><label> <input value=" " name="" id="calculateSumManHour2"/></label></td>

                                </tr>
                                </tbody>
                            </table>
                        </div>

                    </div>
                    <!--  第二项结束 -->
                    <!--添加费用-->
                    <div class="row">
                        <div class="col-md-12">
                            <table class="table table-condensed table-bordered" id="feeTable">
                                <thead>
                                <tr>
                                    <th>险种名称</th>
                                    <th>费用类型</th>
                                    <th>费用金额</th>
                                    <th>费用核价</th>
                                    <th>说明</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr id="tr_addCost">
                                    <td colspan="2"><button type="button" class="btn-mini btn-info" onclick="addCost();">添加费用</button></td>
                                    <td><label>小计:<input value="" name="" id="calculateSumFee1"/></label></td>
                                    <td colspan="3"><label>小计:<input value="" name="" id="calculateSumFee2"/></label></td>
                                </tr>
                                </tbody>

                            </table>

                        </div>
                    </div>
                    <!--添加费用结束-->
                    <!--定损说明-->
                    <div class="row">
                        <div class="col-md-12">
                            <label style="">定损说明:(可输入250字)</label>
                            <label><textarea rows="5" style="width:700px;" id="fixedLossIntruction"></textarea></label>
                        </div>
                    </div>
                    <!--定损说明结束-->
                    <div class="row margin margin15bottom">
                        <div class="col-md-12 text-center ">
                            <button type="button" class="btn-info btn-mini">保存</button>
                            <button type="button" class="btn-info btn-mini" onclick="submitInfo();">提交</button>
                            <button type="button" class="btn-info btn-mini">影像资料</button>
                            <button type="button" class="btn-info btn-mini">关闭</button>
                            <button type="button" class="btn-info btn-mini">历史信息</button>
                        </div>
                    </div>
                </div>
            </form>

        </div>
    </div>
</body>
</html>